import { Body, Controller, HttpCode, Post } from '@nestjs/common';
import { botDto } from './bot.dto';
import { BotService } from './bot.service';

@Controller('bot')
export class BotController {
  constructor(private readonly botService: BotService) {}

  @HttpCode(200)
  @Post()
  checkAndCreateUser(@Body() message: botDto) {
    return this.botService.checkAndCreateUser(message);
  }
}
